from flask import Flask, request, redirect, url_for,jsonify
import os
app = Flask(__name__)
from flask_cors import CORS

CORS(app, resources=r'/*')

@app.route('/check12345', methods=['GET','POST'])
def check():
    data=request.args.get("input")
    print(data)
    # print(1)
    # print(postdata)
    result_dict = dict()
    result_dict["classify"] = "mask_detect"
    result_dict["state"] = "-1"
    result_dict["type"] = "noFace"

    return jsonify(result_dict)


if __name__ == '__main__':
    app.run(debug=True)